package com.njym.java.security.admin.biz;

import com.njym.java.security.admin.entity.TaskUserRelevance;
import com.njym.java.security.admin.entity.TaskUserRelevanceVo;
import com.njym.java.security.admin.mapper.TaskUserRelevanceMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-02 16:20:47
 */
@Service
public class TaskUserRelevanceBiz extends BaseBiz<TaskUserRelevanceMapper, TaskUserRelevance> {
    @Resource
    private TaskUserRelevanceMapper taskUserRelevanceMapper;

    public List<TaskUserRelevanceVo> getUserTask(int familyId, int conId){
        List<TaskUserRelevanceVo> list =  taskUserRelevanceMapper.getUserTask(familyId,conId);
        return list;
    }

    public List<TaskUserRelevanceVo> getTasksStars(Integer instructorId, Integer modelFlag,
                                                   String attr3, Integer status) {
        return taskUserRelevanceMapper.getTasksStars(instructorId, modelFlag, attr3, status);
    }

    public int getcounts(Integer instructorId, Integer modelFlag, String attr3, Integer status) {
        return taskUserRelevanceMapper.getcounts(instructorId, modelFlag, attr3, status);
    }
}